package file;

import java.io.File;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/14 9:55
 */
public class FileDemo {
    public static void main(String[] args) {
        File file=new File("./demo.txt");
        String name=file.getName();
        System.out.println(name);
        long length=file.length();
        System.out.println(length);

    }
}
